TIME_SCALAR = 0.8 # slow the game down a bit

# classes

C_WARRIOR = 0
C_MAGE = 1
C_PRIEST = 2
C_ROGUE = 3
class_code_to_name = ['Warrior','Mage','Priest','Rogue']

# stances

ST_BLOCK = 1 
ST_DEFLECT = 2 
ST_RETRENCH = 3
ST_COUNTER_PARALYSIS = 4
ST_TAKE_COVER = 5
ST_ALL_OUT_DEFENSE = 6
ST_RIPOSTE = 7
ST_COUNTER = 8
ST_FLY = 9
ST_STEALTH = 10
ST_BERSERK = 11
ST_INVULNERABLE = 12
ST_COUNTER_FEAR = 13
ST_COUNTER_SILENCE = 14
ST_COUNTER_SLEEP = 15
ST_COUNTER_BOLTS = 16
ST_COUNTER_DEATHBLOW = 17
ST_COUNTER_MANY = 18
ST_EPIC_BLOCK = 19
ST_LEAP_ASIDE = 20

# status effects

EF_DODGE = 1 
EF_RESIST_FIRE = 2
EF_PARALYSIS = 3
EF_POISON = 4
EF_RESIST_POISON = 5
EF_TAUNT = 6
EF_RIGHTEOUSNESS = 7
EF_FRONTROWBUFF = 8
EF_REVEAL_DANGER = 9
EF_INSULT = 10
EF_FIND_WEAKNESS = 11
EF_FORCEBRAND = 12
EF_EV = 13
EF_SHIELD = 14
EF_SLEEP = 15
EF_STUN = 16
EF_GRAPPLE = 17
EF_FEAR = 18
EF_MEDITATION = 19
EF_CURSE = 20
EF_RESIST_FIRE = 21
EF_RESIST_COLD = 22

# modes

M_NORMAL = 0
M_CHOOSE_ACTION = 1
M_CHOOSE_FRIENDLY_TARGET = 2
M_CHOOSE_ENEMY_TARGET = 3
M_DRAGGING = 4

# positions

POS_C_FRONT_1 = 1
POS_C_FRONT_2 = 2
POS_C_FRONT_3 = 3
POS_C_BACK_1 = 4
POS_C_BACK_2 = 5
POS_C_BACK_3 = 6

POS_M_FRONT_1 = 14
POS_M_FRONT_2 = 15
POS_M_FRONT_3 = 16
POS_M_BACK_1 = 11
POS_M_BACK_2 = 12
POS_M_BACK_3 = 13

POS_DOWN = 20
POS_BACK_LEFT = 21
POS_BACK_RIGHT = 22

# picture codes

I_PRIEST_1 = 1
I_ROGUE_1 = 2
I_WARRIOR_1 = 3
I_MAGE_1 = 4
I_GOLD = 11
I_SKELETON = 12
I_CROWN = 13
I_PAUSE = 14
I_FLEE = 15
I_QUIT = 16
I_RED = 17
I_GREY = 18
I_GREEN = 19
I_PALE = 20
I_VERYPALE = 21
I_RED_FRAME = 22
I_GREEN_FRAME = 23
I_BLUE_FRAME = 24
I_SKULL_CROSSBONES = 25
I_RESTART = 26
I_GEMS = 27
I_GEMS_CHEST = 28
I_GOLD_CHEST = 29
I_EXPLOSIVE_RUNE = 30
I_PIT = 31
I_PRIEST_2 = 32
I_ROGUE_2 = 33
I_WARRIOR_2 = 34
I_MAGE_2 = 35
I_PRIEST_3 = 36
I_ROGUE_3 = 37
I_WARRIOR_3 = 38
I_MAGE_3 = 39
I_ARTIFICER = 40
I_BAN_SIDHE = 41
I_BASIC_TROGLODYTE = 42
I_BASILISK = 43
I_BEASTMASTER = 44
I_BLACK_KNIGHT = 45
I_BLUE_DRAGON = 46
I_BURNING_GHOST = 47
I_CENTIPEDE = 48
I_CLAWED_DEMON = 49
I_CLAY_GOLEM = 50
I_COBRA = 51
I_DARK_DWARF = 52
I_DARK_ELF_BOSS = 53
I_DARK_PRIEST = 54
I_DRAGON = 55
I_EYE = 56
I_FIRE_ELEMENTAL = 57
I_FIREFLY = 58
I_GREEN_DRAGON = 59
I_HARPY = 60
I_JELLY = 61
I_KOBOLD = 62
I_LIME_JELLY = 63
I_MAGE = 64
I_MILLIPEDE = 65
I_MUTE_GHOST = 66
I_NAGA = 67
I_NAGA2 = 68
I_OOZE = 69
I_ORC = 70
I_ORC_CHAMPION = 71
I_ORC_PEON = 72
I_PYTHON = 73
I_SHADOW = 74
I_SKELETON_MOB = 75
I_SNAKE = 76
I_SORCERER = 77
I_SPECTRE = 78
I_STONE_GOLEM = 79
I_SUMMONER = 80
I_TROGLODYTE = 81
I_TROGLODYTE_PRIEST = 82
I_TROGLODYTE_SHAMAN = 83
I_UNDEAD_BOSS = 84
I_WASP = 85
I_WHITE_WOLF = 86
I_WIGHT = 87
I_WOLF = 88
I_WRAITH = 89
I_UGLY_THING = 90
I_FIRE = 91
I_LIGHTNING = 92
I_MISSILE = 93
I_POISON_CLOUD = 94
I_SPARKLING_CLOUD = 95
I_WATER = 96
I_DISMANTLE = 97
I_OGRE = 98
I_BLACK_OGRE = 99
I_HILL_GIANT = 100
I_ORC_BOSS = 101
I_SNAKE_BOSS = 102
I_SORCERER_WHITE = 103
I_UNDEAD_BOSS_WHITE = 104
I_TURTLOID = 105
I_TURTLOID_INVULNERABLE = 106
I_DARK_ELF_ARCHER = 107
I_ORC_SLAVEMASTER = 108
I_ORC_ROCK_THROWER = 109
I_ORC_WITH_MANCATCHER = 110
I_BLAST_SPORE = 111
I_LEPRECHAUN = 112
I_ORC_AGITATOR = 113
I_SUMMONING_RUNE = 114
I_SPIKED_PIT = 115
I_GAS_TRAP = 116
I_LOOT = 117
I_MANTICORE = 118
I_TROLL = 119
I_FROZEN_SPIRIT = 120
I_WARLOCK = 121
I_GIANT_ANT = 122
I_THUG = 123
I_BIG_KOBOLD = 124
I_GOBLIN = 125
I_BEETLE = 126
I_MINOTAUR = 127
I_SCORPION = 128
I_BEAR = 129
I_YOUNG_NECROMANCER = 130
I_BIG_SPIDER = 131
I_HELLHOUND = 132
I_DARK_DWARF_LAIRD = 133
I_DARK_ELF_DRUID = 134
I_MUMMY = 135
I_AIR_ELEMENTAL = 136
I_POLTERGEIST = 137
I_BERSERKER = 138
I_DOOR = 139
I_STAIRS = 140

# sound codes

S_HIT = 0
S_MISS = 1
S_ZAP = 2
S_SHOOT = 3
S_MONHIT = 4
S_MONMISS = 5
S_CANCEL = 6
S_KEY = 7
S_GOOD_SPELL = 8
S_OUCH = 9
S_MONSTER_OUCH = 10
S_GOLD = 11
S_BAD_SPELL = 13
S_BREATH = 14
S_SPIT = 15
S_POTION = 16
S_DECONSTRUCT = 17
S_EXTINGUISH = 18
S_FANFARE = 19
S_FIRE_BOLT = 20
S_GAS = 21
S_HEALING = 22
S_ICE_BOLT = 23
S_LIGHTNING_BOLT = 24
S_SMITE = 25
S_UNLOCKING = 26
S_ITEM = 27
S_WIND = 28
S_DOOR = 29
S_STAIRS = 30

# character action codes

CA_DEFLECT = 100
CA_SMITE = 101
CA_RETRENCH = 102
CA_CLEAVE = 103
CA_BLOCK = 104
CA_LEADER = 105
CA_BASH = 106
CA_SWIPE = 107
CA_RUTHLESS = 108
CA_POISON_RESISTANCE = 109
CA_FIRE_RESISTANCE = 110
CA_AGGRESSIVE = 111
CA_THROW = 112
CA_SHOOT = 113
CA_TAUNT = 114
CA_DRAGON_SLAYER = 115
CA_DEATHBLOW = 116
CA_ALL_OUT_DEFENSE = 117
CA_BERSERK = 118
CA_STEELY_GAZE = 119 
CA_RESIST_FEAR = 120
CA_KNOCKBACK = 121 
CA_EPIC_BLOCK = 122
#CA_PACKRAT = 123 # extra trinket slot
CA_VETERAN = 124
CA_PROTECT_THE_FALLEN = 125
CA_STUNNING_BLOW = 126
CA_RAGE = 127 

CA_RESIST_FIRE = 200
CA_SACRIFICE = 201
CA_HEALING = 202
CA_CURE_POISON = 203
CA_SELF_HEAL = 204
CA_SMALL_HEAL = 205
CA_BIG_HEAL = 206
CA_MASS_HEAL = 207
CA_SLING = 208
CA_ROSARY = 209
CA_AGGRO = 210
CA_ARMOR = 211
CA_HEALER = 212
CA_RIGHTEOUSNESS = 213
CA_FRONT_ROW_BUFF = 214
CA_CLEANSING_FLAME = 215
CA_REVEAL_DANGER = 216
CA_REVITALISE = 217
#CA_APOTHECARY = 218 # extra potion slot
CA_CURE_FEAR = 219
CA_UNDEAD_SLAYER = 220
CA_TURN_UNDEAD = 221 
CA_MEDITATION = 222 
CA_CURE_MORTAL_WOUNDS = 223
CA_CURSE = 224 

CA_LUCKY_ESCAPE = 300
CA_DODGE = 301
CA_SNIPE = 302
CA_TAKE_COVER = 303
CA_LUCKY_SHOT = 304
CA_FIND_WEAKNESS = 305
CA_FIND_TRAPS = 306
CA_INSULT_YOUR_MOTHER = 307
CA_ASSASSIN = 307
CA_ARCHER = 308
CA_RIPOSTE = 309
CA_PENETRATION = 310
CA_MORE_GOLD = 311
CA_MORE_GEMS = 312
CA_PICK_LOCKS = 313
CA_INCONSPICUOUS = 314
CA_STEALTH = 315
CA_AMBUSH = 316
CA_ACCURATE_SHOT = 317
CA_WEAKEN = 318
CA_LEAP_ASIDE = 319
#CA_BRIBE = 320
CA_MAGEBANE = 321
CA_VENDETTA = 322 
CA_CONFUSING_SPIEL = 323 
CA_FREE_ACTION = 324 
CA_DISTRACTION = 325

CA_POISON_CLOUD = 400
CA_COUNTERSPELL_PARALYSIS = 401
CA_LIGHTNING_BOLT = 402
CA_FLY = 403
CA_POISON_CLOUD_2 = 404 
CA_WAND_LORE = 405
CA_WAND_LORE_2 = 406
CA_MISSILE = 407 
CA_BUFF_EV = 408 
CA_FORCE_BRAND = 409 
CA_INVULNERABILITY = 410 
CA_BLOOD_MAGIC = 411 
CA_DEFLECT_MISSILE = 412
CA_SPARK = 413 
CA_FIREBOLT = 414 
CA_SHIELD = 415
CA_ESCAPE = 416 
CA_KNIT_FLESH = 417
CA_CONCENTRATION = 418
CA_STICKY_FLAMES = 419
CA_SHOCKING_GRASP = 420
CA_CONFUSION = 421
CA_DECONSTRUCT = 422
CA_COUNTER_FEAR = 432
CA_COUNTER_SLEEP = 433
CA_COUNTER_SILENCE = 434 
#CA_COUNTER_DRAINING = 435
CA_REFLECTION = 436
#CA_COUNTER_DARKNESS = 437
#CA_CHAIN_LIGHTNING = 438 # kewl. success based on Power
#CA_FIREBALL = 439 # success based on Power
CA_EXTINGUISH = 440 
CA_SLOW_TIME = 441
CA_SHOCKWAVE = 442 
#CA_DETECT_MAGIC = 443
CA_DISPELL = 444 
#CA_FORCE_CAGE = 445 # takes an opponent out of circulation for a while


# equipment codes

E_CHAINMAIL = 1
E_BANDED_MAIL = 2
E_TUNIC = 3
E_CLOAK = 4
E_WHITE_ROBE = 5
E_LEATHER_CUIRASS = 6
E_PLATE_MAIL = 7
E_DWARVEN_CHAINMAIL = 8
E_ARCHERS_DOUBLET = 9

E_LONGSWORD = 50
E_STAFF = 51
E_MACE = 52
E_CLUB = 53
E_DAGGER = 54
E_SPEAR = 55
E_ANTIQUE_SWORD = 56
E_RAPIER = 57
E_RELIQUARY = 58
E_GNARLED_STAFF = 59
E_WARLOCK_SWORD = 60
E_ELVEN_KNIFE = 61
E_ASSASSINS_BLADE = 62
E_FLAIL = 63
E_GREATSWORD = 64
E_AXE = 65
E_CHAMPIONS_SWORD = 66
E_MACE_OF_CHASTISEMENT = 67
E_DRAGONS_BANE = 68
E_MACE_OF_DISRUPTION = 69
E_MAUL = 70

E_PRENTICE_WAND = 100
E_ALDER_WAND = 101
E_WILLOW_WAND = 102
E_HAZEL_WAND = 103
E_YEW_WAND = 104
E_FLINT_WAND = 105
E_SHORTBOW = 121
E_LONGBOW = 122
E_SLING = 123
E_CROSSBOW = 124
E_JAVELINS = 125
E_ELVEN_BOW = 126
E_GNOMISH_CROSSBOW = 127

E_SHIELD = 150
E_BUCKLER = 151
E_DWARVEN_SHIELD = 152
E_BLAZONED_SHIELD = 153
E_TOWER_SHIELD = 154
E_MIRRORED_SHIELD = 155
E_DIRK = 171
E_MAIN_GAUCHE = 172

E_PLUMED_HELM = 200
E_HOODED_CLOAK = 201
E_VISORED_HELM = 202
E_CHAIN_UNDERVEST = 203
E_HUNTERS_SASH = 204
E_ELVEN_ARROWS = 205
E_DUELLISTS_BRACERS = 206
E_BRACERS_OF_DEFENSE = 207
E_UNICORN_HORN = 208
E_TREASURE_MAP = 209
E_BELT_OF_SCALPS = 210
E_ELVEN_BOOTS = 211
E_FLASK_OF_ELIXIR = 212
E_GUERDON = 213
E_POISON_ARROWS = 214
E_RING_OF_FREE_ACTION = 215
E_MIRRORED_HELM = 216

# trinket type codes

TR_HEADGEAR = 1
TR_CLOAK = 2
TR_ARROWS = 3
TR_FOOTWEAR = 4
TR_BRACERS = 5

# dungeon event codes

DE_MOBS = 1
DE_PAUSE = 2
DE_MESSAGE = 3
DE_NOFLEE = 4
DE_GOLD = 5
DE_WIN = 6
DE_CLEARMOBS = 7
DE_QUIT = 8
DE_GEMS = 9
DE_CHECKTRAPS = 10
DE_GOLDCHEST = 11
DE_GEMSCHEST = 12
DE_PIT = 13
DE_EXPLOSIVERUNE = 14
DE_NOFLY = 15
DE_CANFLY = 16
DE_ALIGHT = 17
DE_GASTRAP = 18
DE_SUMMONINGRUNE = 19
DE_SPIKEDPIT = 20
DE_LOOT = 21
DE_DOOR = 22
DE_STAIRS = 23

# monster codes

MOB_CENTIPEDE = 1
MOB_KOBOLD = 2
MOB_ORC_WRETCH = 3
MOB_HARPY = 4
MOB_ORC_ROCK_THROWER = 5
MOB_SNAKE = 6
MOB_TROGLODYTE = 7
MOB_BLAST_SPORE = 8
MOB_COBRA = 9
MOB_GIANT_FIREFLY = 10
MOB_GIANT_WASP = 11
MOB_JELLY = 12
MOB_MILLIPEDE = 13
MOB_ORC_WARRIOR = 14
MOB_PYTHON = 15
MOB_SKELETON = 16
MOB_TROGLODYTE_ARCHER = 17
MOB_WOLF = 18
MOB_LEPRECHAUN = 19
MOB_OOZE = 20
MOB_ORC_AGITATOR = 21
MOB_ORC_SLAVEMASTER = 22
MOB_ORC_WITH_MANCATCHER = 23
MOB_SPECTRE = 24
MOB_TROGLODYTE_SHAMAN = 25
MOB_CLAY_GOLEM = 26
MOB_NAGA_ARCHER = 27
MOB_NAGA_WARRIOR = 28
MOB_OGRE = 29
MOB_ORC_CHAMPION = 30
MOB_TROGLODYTE_PRIEST = 31
MOB_TURTLOID = 32
MOB_WHITE_WOLF = 33
MOB_WIGHT = 34
MOB_WRAITH = 35
MOB_ARTIFICER = 36
MOB_BASILISK = 37
MOB_BLACK_KNIGHT = 38
MOB_BLACK_OGRE = 39
MOB_BURNING_GHOST = 40
MOB_DARK_DWARF = 41
MOB_DARK_ELF_ARCHER = 42
MOB_DARK_PRIEST = 43
MOB_LIME_JELLY = 44
MOB_MAGE = 45
MOB_MAGEBANE_EYE = 46
MOB_MUTE_GHOST = 47
MOB_SHADOW = 48
MOB_TROGLODYTE_BEASTMASTER = 49
MOB_BAN_SIDHE = 50
MOB_HILL_GIANT = 51
MOB_ORC_BOSS = 52
MOB_STONE_GOLEM = 53
MOB_SUMMONER = 54
MOB_YOUNG_RED_DRAGON = 55
MOB_DARK_ELF_BOSS = 56
MOB_FIRE_ELEMENTAL = 57
MOB_MAULER = 58
MOB_SNAKE_BOSS = 59
MOB_SORCERER = 60
MOB_YOUNG_GREEN_DRAGON = 61
MOB_UNDEAD_BOSS = 62
MOB_YOUNG_BLUE_DRAGON = 63
MOB_UGLY_THING = 64
MOB_MANTICORE = 65
MOB_TROLL = 66
MOB_FROZEN_SPIRIT = 67
MOB_WARLOCK = 68
MOB_GIANT_ANT = 69
MOB_THUG = 70
MOB_BIG_KOBOLD = 71
MOB_GOBLIN = 72
MOB_BEETLE = 73
MOB_MINOTAUR = 74
MOB_SCORPION = 75
MOB_BEAR = 76
MOB_YOUNG_NECROMANCER = 77
MOB_BIG_SPIDER = 78
MOB_HELLHOUND = 79
MOB_DARK_DWARF_LAIRD = 80
MOB_DARK_ELF_DRUID = 81
MOB_MUMMY = 82
MOB_AIR_ELEMENTAL = 83
MOB_POLTERGEIST = 84
MOB_BERSERKER = 85

# monster action codes

MA_ANTICASTER = 1    # magebane eye
MA_AURA_COOL = 83    # ordinary mob power
MA_AURA_COLD = 10    # boss power
MA_AURA_FIRE = 17  
MA_BITE = 2          # boss power, sometimes bypasses normal block
MA_BLOCK = 3
MA_BREATH_FIRE = 4
MA_BREATH_LIGHTNING = 5
MA_BREATH_POISON_CLOUD = 6  # All-front-row poison DOT. If you have poison res you take half damage and dont get poisoned
MA_CATCH = 7         # with a mancatcher - allows MA_FINISHING_BLOW 
MA_CLAW = 8          # boss level power
MA_CLAW_FAST = 9     # ditto
MA_DARKNESS = 11     # screen goes dim
MA_DWARF_SPIRITS = 12 # flavor and heal or buff self
MA_ENTER_SHELL = 13 
MA_EXIT_SHELL = 14
MA_EXPLODE = 15         
MA_FINISHING_BLOW = 16  # after MA_STUN or MA_CATCH. 
MA_FIREBOLT = 18        # not the spell version. 
MA_FLEE = 19
MA_FLEE_FAST = 20
MA_FLIT = 21
MA_FLIT_TAUNT = 22   # harpy
MA_FLY = 23
MA_GAZE_DRAIN_BAR = 24       # single target.  
MA_GAZE_PARALYSIS = 25       # whole group
MA_GAZE_PARALYSIS_OFTEN = 26 # whole group
MA_GAZE_SCARE = 27           # single target. 
MA_GAZE_SLEEP = 28           # single target
MA_GET_CONFUSED = 29 # d'uh. Confusion/stun vulnerability during
MA_GRAPPLE = 30      # allows MA_SQUEEZE
MA_HOWL = 31         # flavor, chance of a fear effect
MA_IRISH = 32        # flavor
MA_LEAP_AWAY = 33    # flavor version of MA_FLY
MA_METEOR_SWARM = 34    # see 'em coming and get out of the way
MA_RALLY_ORCS = 35
MA_RALLY_TROGLODYTES = 36
MA_SCOTS = 37        # flavor
MA_SHRIEK_SCARE = 38 # low grade mass effects. 
MA_SILENCE = 39      # not the spell version. turn sound off
MA_SMITE = 40
MA_SMITE_BLACK_KNIGHT = 41
MA_SMITE_BLACK_OGRE = 42
MA_SMITE_DARK_ELF = 43
MA_SMITE_DARK_PRIEST = 44
MA_SMITE_NAGA = 45
MA_SMITE_OGRE = 46
MA_SMITE_ORC_BOSS = 47
MA_SMITE_ORC_CHAMPION = 48
MA_SNIPE = 49
MA_SNIPE_DARK_ELF = 50
MA_SNIPE_NAGA = 51
MA_SNIPE_ORC_BOSS = 52
MA_SOFT_ENRAGE = 53             # fire elemental - cumulatively increases melee and aura damage
MA_SPELL_CAUSE_WOUNDS = 54
MA_SPELL_DEFLECT_MISSILES = 55  
MA_SPELL_FIREBOLT = 56          
MA_SPELL_HEAL = 57              # other
MA_SPELL_INVULNERABILITY = 58
MA_SPELL_LIGHTNING = 59         
MA_SPELL_PARALYSIS = 60         # single target
MA_SPELL_POISON_CLOUD = 61      # scaled down version of MA_BREATH_POISON
MA_SPELL_SCARE = 62             
MA_SPELL_SILENCE = 63           # turn sound off
MA_SPELL_SLEEP = 64             # single target
MA_SPIT = 65                 # for poison
MA_SQUEEZE = 66              # after MA_GRAPPLE
MA_SQUEEZE_NASTY = 67        # boss level version
MA_STUN = 68                 # melee attack, may also lead to MA_FINISHING_BLOW   
MA_SUMMON_ANIMALS = 69
MA_SUMMON_COBRAS = 70
MA_SUMMON_EVIL_TRASH = 71
MA_SUMMON_GOLEM = 72
MA_SUMMON_ORCS = 73
MA_SUMMON_REPTILES = 74
MA_SUMMON_SNAKES = 75
MA_SUMMON_TROGLODYTES = 76
MA_SUMMON_UNDEAD = 77
MA_SUMMON_VARIOUS = 78
MA_SUMMON_WRETCH = 79
MA_SUPER_SMITE = 80        # sometimes bypasses normal block
MA_SWOOP = 81              # harpy 
MA_TAILSWIPE = 82
MA_ZAP = 84                # firefly
MA_HURL_AND_ADVANCE = 85   # hill giant. 
MA_ADVANCE = 86            # blast spore
MA_AURA_FIRE_RAGE = 87     # fire elemental
MA_CHILL_DART = 88
MA_SHOVE = 89               
MA_SHADOW_BOLT = 90
MA_SUMMON_BODYGUARD = 91
MA_SUMMON_FRONT = 92
MA_FLEE_SLOWLY = 93
MA_SNIPE_MANTICORE = 94
MA_ARGOT = 95        # flavor
MA_STEAL = 96
MA_DROP_BOULDER = 97
MA_CHARGE = 98
MA_SUMMON_LOW_UNDEAD = 99
MA_STING_PARALYSIS = 100
MA_BREATH_SMALL_FIRE = 101
MA_BURNS = 102
MA_CURSE = 103
MA_TORNADO = 104
MA_SNIPE_POLTERGEIST = 105
MA_CLEAVE = 106
MA_SMITE_BERSERKER = 107

# color codes

COL_LIGHT = (200,200,200)
COL_RED = (250,50,50)

# potions

POT_SMALLHEAL = 1
POT_MEDHEAL = 2
POT_BIGHEAL = 3
POT_BAR_PRIEST = 4
POT_BAR_MAGE = 5
POT_BAR_ROGUE = 6
POT_PERCENTHEAL = 7
POT_ANTIDOTE = 8
POT_FIRE_RESIST = 9
POT_COLD_RESIST = 10
POT_INVULNERABILITY = 11
POT_COURAGE = 12
POT_BERSERK = 13